package com.example.easyexcel.service.impl;

import com.alibaba.excel.EasyExcel;
import com.example.easyexcel.utils.ExcelDemoListener;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import com.example.easyexcel.dao.LitemallRegionDao;
import com.example.easyexcel.entity.LitemallRegion;
import com.example.easyexcel.service.LitemallRegionService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;


@Service("litemallRegionService")
public class LitemallRegionServiceImpl extends ServiceImpl<LitemallRegionDao, LitemallRegion> implements LitemallRegionService {

    @Autowired
    LitemallRegionDao litemallRegionDao;

    @Override
    public IPage<LitemallRegion> getByPage(Page<LitemallRegion> page) {
        QueryWrapper queryWrapper = new QueryWrapper();

        return litemallRegionDao.selectPage(page,queryWrapper);
    }
    @Override
    public void listSave(List<LitemallRegion> list) {
        litemallRegionDao.saveList(list);
    }


}